package com.pactera.madp.cp.api.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 产品分类与部门中间表
 *
 * @author kedongZhang
 * @date 2021/6/16 9:45
 */
@Data
@ApiModel(value = "产品分类部门实体")
@TableName("cp_prod_group_department")
public class ProductGroupDepartmentEntity {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品分类id
     */
    @ApiModelProperty(value = "产品分类id")
    private Integer groupId;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    /**
     * 删除标记,1:已删除,0:正常
     */
    @TableLogic(value="0",delval="1")
    @ApiModelProperty(value = "删除标记,1:已删除,0:正常")
    private Integer delFlag;
}
